package com.lw.structural.bridge;

import com.lw.structural.bridge.abs.Shape;

public class BridgePatternDemo {
   public static void main(String[] args) {
      //通过相同的抽象类方法、不同的桥接实现类，实现不同的颜色
      Shape redCircle = new Circle(100,100, 10, new RedCircle());
      Shape greenCircle = new Circle(100,100, 10, new GreenCircle());
 
      redCircle.draw();
      greenCircle.draw();
   }
}